<?php 
    $url = $_SERVER['REQUEST_URI'];
    $lang_code = Router::getConfig('code');
    $engClass = $vieClass = '';
    if($lang_code=='vi') $vieClass = 'acitve';
    if($lang_code=='en') $engClass = 'acitve';
?>
<div class="header-top-l pull-left">
    <a href="#menu" class="menu-res"><i class="glyphicon glyphicon-align-justify"></i></a>
    <h1 class="parent-title"><a href="/" class="logo">USIS</a></h1>
</div>
<div class="header-top-c">
    <h2 class="title-hd">EB-5 CENTER</h2>
</div>
<div class="header-top-r">
    <div class="header-tr clearfix">
        <ul class="pull-right tlang">
            <li class="item <?php echo $engClass;?> lang-eng"><a href="<?php echo '/eng'.substr($url,4);?>" class="tlg-lk"><?php echo __d('default','English');?></a></li>
            <li class="item <?php echo $vieClass;?> lang-vie"><a href="<?php echo '/vie'.substr($url,4);?>" class="tlg-lk"><?php echo __d('default','Tiếng việt');?></a></li>
        </ul> 
        <form class="form-inline pull-right main-form search-form" method="GET" role="form" action="<?php echo $this->Html->url(array('plugin'=>'View','controller'=>'View','action'=>'search_result'));?>">
            <div class="form-group">
                <div class="input-group">
                    <input type="text" class="form-control" name="keyword" placeholder="<?php echo __d('default','Tìm kiếm');?>...">
                </div>
                <button type="submit" class="btn btn-default search-button-no"><i class="glyphicon glyphicon-search"></i></button>
            </div>
        </form>
    </div>
    <div class="header-br clearfix">
        <ul class="list-share-m pull-right">
            <li class="item">
                <a href="#"><span class="icon-cus-fackbook"></span></a>
            </li>
            <li class="item">
                <a href="#"><span class="icon-cus-linkin"></span></a>
            </li>
            <li class="item">
                <a href="#"><span class="icon-cus-tw"></span></a>
            </li>
            <li class="item">
                <a href="#"><span class="icon-cus-glus"></span></a>
            </li>
            <li class="item">
                <a href="#"><span class="icon-cus-youtube"></span></a>
            </li>
        </ul>
    </div>
</div>